/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package config.Models;

import config.ConfigMacros;
import java.util.Map;

/**
 *
 * @author Mrkupi
 */
public class Conf_Item {
    
    public String resClass;
    public String resBucket;
    public String title;
    public int gold;
    public String entity;
    public int exp;
    
    public Conf_Item( Map<String, Object> obj )
    {
        resClass    =   String.valueOf( obj.get( ConfigMacros.ITEM_RESCLASS ) );
        resBucket   =   String.valueOf( obj.get( ConfigMacros.ITEM_BUCKET ) );
        title       =   String.valueOf( obj.get( ConfigMacros.ITEM_TITLE ) );
        gold        =   Integer.parseInt(String.valueOf( obj.get( ConfigMacros.ITEM_GOLD )));
        entity      =   String.valueOf( obj.get( ConfigMacros.ITEM_ENTITY ) );
        exp         =   Integer.parseInt(String.valueOf( obj.get( ConfigMacros.ITEM_EXP )));
    }
}
